<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.controller.confirm.Confirm" %>
<%@ page import="com.conversationboard.view.MainMenu"%>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<% 
	com.conversationboard.model.Thread thread = (com.conversationboard.model.Thread) request.getAttribute("thread");
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Admin: Edit Thread Title</title>
		<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>

		<div class="headingblock">
			<h1>Admin: Edit Thread Title</h1>
		</div>

		<div class="mainblock">
			<div class="formsection">
				<h3>Edit Thread Title</h3>
		
				<form class="formsectionlight" action="AdminUpdateThreadTitleControllerServlet" method="post">
				 	
				 	<input name="boardid" value="<%=thread.getBoardId()%>" type="hidden" />
				 	<input name="threadid" value="<%=thread.getThreadId()%>" type="hidden" />
				 	<%= Confirm.getKey(request.getUserPrincipal().getName()) %>
				 	
				 	<textarea class="smalltextbox" name="text" rows=1 cols=80><%=thread.getTitle()%></textarea>
				 	
				 	<br /><br />
				 	
				 	<input type="submit" value="Submit Update" />
				 	
				</form>
			</div>
		</div>

		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
			
	</body>
	
</html>